package com.ia.aistream.service.operating.impl;

import com.ia.aistream.common.core.text.Convert;
import com.ia.aistream.mapper.operating.DocTitleMapper;
import com.ia.aistream.model.operating.entity.DocTitle;
import com.ia.aistream.service.operating.IDocTitleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;



/**
 * doc_titleService业务层处理
 *
 * @author aistream
 * @date 2021-01-20
 */
@Service
public class DocTitleServiceImpl implements IDocTitleService
{
    @Autowired
    private DocTitleMapper docTitleMapper;

    /**
     * 查询doc_title
     *
     * @param id doc_titleID
     * @return doc_title
     */
    @Override
    public DocTitle selectDocTitleById(String id)
    {
        return docTitleMapper.selectDocTitleById(id);
    }

    /**
     * 查询doc_title列表
     *
     * @param docTitle doc_title
     * @return doc_title
     */
    @Override
    public List<DocTitle> selectDocTitleList(DocTitle docTitle)
    {
        return docTitleMapper.selectDocTitleList(docTitle);
    }

    /**
     * 新增doc_title
     *
     * @param docTitle doc_title
     * @return 结果
     */
    @Override
    public int insertDocTitle(DocTitle docTitle)
    {
        return docTitleMapper.insertDocTitle(docTitle);
    }

    /**
     * 修改doc_title
     *
     * @param docTitle doc_title
     * @return 结果
     */
    @Override
    public int updateDocTitle(DocTitle docTitle)
    {
        return docTitleMapper.updateDocTitle(docTitle);
    }

    /**
     * 删除doc_title对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteDocTitleByIds(String ids)
    {
        return docTitleMapper.deleteDocTitleByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除doc_title信息
     *
     * @param id doc_titleID
     * @return 结果
     */
    @Override
    public int deleteDocTitleById(Long id)
    {
        return docTitleMapper.deleteDocTitleById(id);
    }
}
